Add a fallback handler for invalid commands

This prevents hangs when clients send an invalid messages that no
handler can respond to.