Removed var_dump and modified ImapStream::close to reset property _resource