handling disconnect
added helper function to package signal results according to the signal spec