Making sure to handle all exceptions when deleting a session