Fixed bug where serviceconnection was leaked