Add a condition around shutting the databse using a system property