Phatbeat library clash with cleanshutdown

I am setting up the Pirate Radio - firstly with vlcd, now with mopidy.
The On/Off button is controlling the cleanshutd daemon script, which, however, interferes with the phatbeat python library. if I try any of the phatbeat examples (with buttons and/or leds), the library runs GPIO.cleanup() at the exit. this however triggers the cleanshutd - a message of

Broadcast message from root@raspberrypi (somewhere) (Fri Dec 22 14:48:14 2017):
BCM 12 held low, system shutdown in 0 minutes

and the Pi shuts down.

if I comment the line 46 in /usr/lib/python2.7/dist-packages/phatbeat/init.py containing “GPIO.cleanup()” no shutdown is fired.

how should this be handled properly? shall I disable cleanshutd? but I would like to have a system-wide clean shutdown possibility …

best,
ahor0

Removing the GPIO.cleanup() is not the worst fix!

You might- if you’re using phatbeatd- want to remove the code that handles shutdown too: