Closing tab with report does not work