on_signal decorator

Cosmetic improvement making things better readable :)