main: exit if invalid monitor index is specified

Ref #4