Update macgen; now asks for password.
Fix buggy reconnection mechanism.