Added try/catch to deleteUser