diff --git a/obexd/client/session.c b/obexd/client/session.c
index 003c7f6..9e1ae25 100644
--- a/obexd/client/session.c
+++ b/obexd/client/session.c
static void session_shutdown(struct session_data *session)
{
- g_dbus_remove_watch(session->conn, session->owner_watch);
-
if (session->transfer_path) {
agent_notify_error(session->conn, session->agent_name,
session->agent_path, session->transfer_path,
"org.openobex.Error.NotAuthorized",
"Not Authorized");
+ g_dbus_remove_watch(session->conn, session->owner_watch);
+
session_shutdown(session);
return dbus_message_new_method_return(message);