Add missing import for socket and forward signal()s paramteres