Check exit code when droping database