Removed unnecessary if-clause which resulted in faulty behavior.
Should react to signals instantly now.