allow way to close browser without setting view controller to nil

iOS only