ensure all db connections are closed after trying to update deployable. Refs #320