force dock close on unload