Catch error on drop database